package top.superflow.service.view.inf

import top.superflow.service.view.dto.ActionDef

import scala.beans.BeanProperty

trait WithAction {

  @BeanProperty
  var actions : Map[String,List[ActionDef]] = _
}

object WithAction{

  final val ACTION_ALL = List(ActionDef.PREDEFINED_COLUMN_ACTION_VIEW, ActionDef.PREDEFINED_COLUMN_ACTION_UPDATE, ActionDef.PREDEFINED_COLUMN_ACTION_DELETE)

  final val ACTION_VIEW_UPDATE = List(ActionDef.PREDEFINED_COLUMN_ACTION_VIEW, ActionDef.PREDEFINED_COLUMN_ACTION_UPDATE)


}
